package pseudoAssemblerCompiler.twopassassembler.model.referencetable;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * User: Роман
 * Date: 27.03.12
 * Time: 17:16
 */
public class ReferenceTableContentProvider implements IStructuredContentProvider {

    private static final Logger LOGGER =
            LoggerFactory.getLogger(ReferenceTableContentProvider.class);

    @Override
    public Object[] getElements(Object inputElement) {
        return ((List<String[]>) inputElement).toArray();
    }

    @Override
    public void dispose() {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

}
